<%= raw set_title nil %>
<table>
  <tr>
    <th><%= Article.human_attribute_name("title") %></th>
    <th><%= Article.human_attribute_name("body") %></th>
    <th><%= Article.human_attribute_name("created_at") %></th>
    <th><%= Article.human_attribute_name("updated_at") %></th>
    <th><%= Article.human_attribute_name("title") %></th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @articles.each do |article| %>
  <tr>
    <td><%= link_to article.title, user_article_path(@author, article) %></td>
    <td><%= raw blacklist markdown(article.body) %></td>
    <td><%= article.user.username %></td>
    <td><%= l article.created_at %></td>
    <td><%= l article.updated_at %></td>
    <% if @current_user %>
    <td><%= link_to t("command.edit"), edit_user_article_path(@current_user, article) %></td>
    <td><%= link_to t("command.destroy"), user_article_path(@current_user, article), :confirm => t("command.confirm")+t("command.destroy"), :method => :delete %></td>
    <% end %>
  </tr>
<% end %>
</table>
<br />
<%= link_to t("command.new")+Article.model_name.human, new_user_article_path %>
